package com.gupao.strategydemo.orderpay;

import com.gupao.strategydemo.orderpay.payport.PayType;
import com.gupao.strategydemo.orderpay.payport.PayTypeMap;
import com.sun.tools.corba.se.idl.constExpr.Or;

import java.math.BigDecimal;

public class OrderPayTest {

    public static void main(String[] args) {
        Order order = new Order("123","20190318",new BigDecimal(321.45));
        order.pay(PayType.ALI_PAY.getPayment());
//        order.pay(PayTypeMap.get(PayTypeMap.ALI_PAY));
    }
}
